#include("./_inc/_layout.html")
#@layout("登录 - Jboot Fly",null,null,"jie")
#define content()
    <meta name="referrer" content="always" />

    <link href="https://csdnimg.cn/public/favicon.ico" rel="SHORTCUT ICON" />
    <link rel="stylesheet" href="/static/css/main.css">

    <script type="text/javascript">
        var CFG = {
            API_URL: "//so.csdn.net/so/"
        }

    </script>

    <script type="text/javascript">
        var _hmt = _hmt || [];
        _hmt.push(['_setVisitTag', '256', 'search_csdn']);
    </script>
    <script type="text/javascript">
        var loginname = getCookie('UserName');
        var currentUserName = loginname;

        function getCookie(objName) {
            var arrStr = document.cookie.split("; ");
            for (var i = 0; i < arrStr.length; i++) {
                var temp = arrStr[i].split("=");
                if (temp[0] == objName) {
                    return decodeURI(temp[1]);
                }
            }
        }

        function GetQueryString(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]);
            return null;
        }

        //var show_course = false;

        $(document).ready(function () {

            $("ul.search-type li").click(function () {
                var ili = $(".search-type")[0].children.length;
                for (var i = 0; i < ili; i++) {
                    $(".search-type")[0].children[i].style.color = "#000000";
                }

                if (this.innerHTML == "头条") {

// 			    		leavecode();
                    $("#tt")[0].value = "news";
                    $("#tb")[0].value = "news";

                    $(".search-type")[0].children[4].style.color = "#990000";

                    $("#ot")[0].value = $("input[name='o1']:checked").val();
                    $("#ob")[0].value = $("input[name='o1']:checked").val();
                    $("#st")[0].value = "";
                    $("#sb")[0].value = "";

                    $("#o_news")[0].style.display = "inline";
                    $("#o_disscus_code")[0].style.display = "none";
                    $("#o_doc")[0].style.display = "none";
// 			    		$("#o_ask")[0].style.display="none";
                    $("input[name='o1']").each(function () {
                        if ($(this).val() == "") {
                            $(this).attr("checked", true);
                        }
                    });
// 			    		$("input[name='o1'][value='time'").attr("checked",true);
// 						$("#codeSelector")[0].style.display="none";
// 						$("#codeSelector2")[0].style.display="none";
// 						$(".solve_pupup")[0].style.display="none";

                } else if (this.innerHTML == "博客") {
// 			    		leavecode();
                    $("#tt")[0].value = "blog";
                    $("#tb")[0].value = "blog";

                    $(".search-type")[0].children[1].style.color = "#990000";

                    $("#ot")[0].value = "";
                    $("#ob")[0].value = "";
                    $("#st")[0].value = "";
                    $("#sb")[0].value = "";

                    $("#o_news")[0].style.display = "none";
                    $("#o_disscus_code")[0].style.display = "none";
                    $("#o_doc")[0].style.display = "none";
// 			    		$("#o_ask")[0].style.display="none";
// 			    		$("#codeSelector")[0].style.display="none";
// 			    		$("#codeSelector2")[0].style.display="none";
// 			    		$(".solve_pupup")[0].style.display="none";
                } else if (this.innerHTML == "学院") {
// 			    		leavecode();
                    $("#tt")[0].value = "course";
                    $("#tb")[0].value = "course";

                    $(".search-type")[0].children[4].style.color = "#990000";

                    $("#ot")[0].value = "";
                    $("#ob")[0].value = "";
                    $("#st")[0].value = "";
                    $("#sb")[0].value = "";

                    $("#o_news")[0].style.display = "none";
                    $("#o_disscus_code")[0].style.display = "none";
                    $("#o_doc")[0].style.display = "none";
// 			    		$("#o_ask")[0].style.display="none";
// 			    		$("#codeSelector")[0].style.display="none";
// 			    		$("#codeSelector2")[0].style.display="none";
// 			    		$(".solve_pupup")[0].style.display="none";
                } else if (this.innerHTML == "论坛") {
// 			    		leavecode();
                    $("#tt")[0].value = "discuss";
                    $("#tb")[0].value = "discuss";

                    $(".search-type")[0].children[3].style.color = "#990000";

                    $("#ot")[0].value = $("input[name='o1']:checked").val();
                    $("#ob")[0].value = $("input[name='o1']:checked").val();
                    $("#st")[0].value = "";
                    $("#sb")[0].value = "";

                    $("#o_news")[0].style.display = "none";
                    $("#o_disscus_code")[0].style.display = "inline";
                    $("#o_doc")[0].style.display = "none";
                } else if (this.innerHTML == "下载") {
// 			    		leavecode();
                    $("#tt")[0].value = "doc";
                    $("#tb")[0].value = "doc";

                    $(".search-type")[0].children[2].style.color = "#990000";

                    $("#ot")[0].value = "";
                    $("#ob")[0].value = "";
                    $("#st")[0].value = $("input[name='o3']:checked").val();
                    $("#sb")[0].value = $("input[name='o3']:checked").val();

                    $("#o_news")[0].style.display = "none";
                    $("#o_disscus_code")[0].style.display = "none";
                    $("#o_doc")[0].style.display = "none";
                } else {
                    $("#tt")[0].value = "";
                    $("#tb")[0].value = "";

                    $(".search-type")[0].children[0].style.color = "#990000";

                    $("#ot")[0].value = "";
                    $("#ob")[0].value = "";
                    $("#st")[0].value = "";
                    $("#sb")[0].value = "";

                    $("#o_news")[0].style.display = "none";
                    $("#o_disscus_code")[0].style.display = "none";
                    $("#o_doc")[0].style.display = "none";
                }
                document.search_form_1.submit();
            });
        });

        function changeOrder(value) {
            $("#ot")[0].value = value;
            $("#ob")[0].value = value;

            document.search_form_1.submit();
        }

        function changeDocOrder(value) {
            $("#st")[0].value = value;
            $("#sb")[0].value = value;

            document.search_form_1.submit();
        }

        $(document).ready(function () {

            var ili = $(".search-type")[0].children.length;
            var t = GetQueryString("t");
            if (t == "news") {
                $(".search-type")[0].children[4].style.color = "#990000";

                $("#o_news")[0].style.display = "inline";
                $("#o_disscus_code")[0].style.display = "none";
                $("#o_doc")[0].style.display = "none";
                $("input[name='o1']").each(function () {
                    if ($(this).val() == "") {
                        $(this).attr("checked", true);
                    }
                });
            } else if (t == "blog") {
                $(".search-type")[0].children[1].style.color = "#990000";

                $("#o_news")[0].style.display = "none";
                $("#o_disscus_code")[0].style.display = "none";
                $("#o_doc")[0].style.display = "none";
            } else if (t == "course") {
                $(".search-type")[0].children[4].style.color = "#990000";

                $("#o_news")[0].style.display = "none";
                $("#o_disscus_code")[0].style.display = "none";
                $("#o_doc")[0].style.display = "none";
            } else if (t == "discuss") {
                $(".search-type")[0].children[3].style.color = "#990000";

                $("#o_news")[0].style.display = "none";
                $("#o_disscus_code")[0].style.display = "inline";
                $("#o_doc")[0].style.display = "none";
                $("input[name='o2']").each(function () {
                    if ($(this).val() == "") {
                        $(this).attr("checked", true)
                    }
                });
            } else if (t == "code") {
                $(".search-type")[0].children[3].style.color = "#990000";

                $("#o_news")[0].style.display = "none";
                $("#o_disscus_code")[0].style.display = "none";
                $("#o_doc")[0].style.display = "none";
                $("input[name='o2']").each(function () {
                    if ($(this).val() == "") {
                        $(this).attr("checked", true)
                    }
                });
            } else if (t == "doc") {
                $(".search-type")[0].children[2].style.color = "#990000";

                $("#o_news")[0].style.display = "none";
                $("#o_disscus_code")[0].style.display = "none";
                $("#o_doc")[0].style.display = "none";
                $("input[name='o3']").each(function () {
                    if ($(this).val() == "") {
                        $(this).attr("checked", true);
                    }
                });
            } else {
                $(".search-type")[0].children[0].style.color = "#990000";

                $("#o_news")[0].style.display = "none";
                $("#o_disscus_code")[0].style.display = "none";
                $("#o_doc")[0].style.display = "none";
            }
        });

        $(".search-type").find('li').hover(function () {
            $(this).css("color", "rgb(153, 0, 0);");
        }, function () {
            $(this).css("color", "rgb(153, 0, 0);");
        })
    </script>

<div class="layui-container">
    <div class="layui-row layui-col-space15">
    <!--con-l start{-->
    <div class="layui-col-md9">
       <div class="fly-panel" style="margin-bottom: 0;">
        <ul class="search-type">
            <li style="color: rgb(153, 0, 0);">全部</li>
            <li>博客</li>
            <li>下载</li>
            <li>论坛</li>
            <li>学院</li>
        </ul>
        <div class="search-from2" style="position:relative">
            <form id="search_form_1" name="search_form_1">
                <div class="search-text-con2" style="position:relative">
                    <input type="text" path="q" class="search-text2" id="keyword" name="q" value="文章" autocomplete="off" />
                    <input type="hidden" id="tt" name="t" value="" />
                    <input type="hidden" id="ot" name="o" value="" />
                    <input type="hidden" id="st" name="s" value="" />
                    <input type="hidden" id="lant" name="l" value="" />
                    <ul class="search-suggest2" id="search-suggest2" style="top: 32px"></ul>
                </div>
                <div class="search-btn-con2">
                    <input type="Submit" value="搜一搜" class="search-btn2" />
                </div>
            </form>
            <div class="search-addition-con">
                <div id="o_news" style="display:none" class="search-addition">
                    <em><input type="radio" name="o1" value="simi" onchange="changeOrder(this.value);" onclick="this.blur();" checked="" /></em>
                    <span>按相关度排序</span>
                    <em><input type="radio" name="o1" value="time" onchange="changeOrder(this.value);" onclick="this.blur();" /></em>
                    <span>按时间排序 </span>
                </div>
                <div id="o_disscus_code" style="display:none" class="search-addition">
                    <em><input type="radio" name="o2" style="margin-bottom: 12px" value="simi" onchange="changeOrder(this.value);" onclick="this.blur();" checked="" /></em>
                    <span>按相关度排序 </span>
                    <em><input type="radio" name="o2" style="margin-bottom: 12px" value="reply" onchange="changeOrder(this.value);" onclick="this.blur();" /></em>
                    <span>按回复数排序</span>
                </div>
                <div id="o_doc" style="display:none" class="search-addition">
                    <em><input type="radio" name="o3" value="all" onchange="changeDocOrder(this.value);" onclick="this.blur();" checked="" /></em>
                    <span>全部</span>
                    <em><input type="radio" name="o3" value="1" onchange="changeDocOrder(this.value);" onclick="this.blur();" /></em>
                    <span>文档</span>
                    <em><input type="radio" name="o3" value="2" onchange="changeDocOrder(this.value);" onclick="this.blur();" /></em>
                    <span>代码类</span>
                    <em><input type="radio" name="o3" value="3" onchange="changeDocOrder(this.value);" onclick="this.blur();" /></em>
                    <span>工具类</span>
                </div>
            </div>
        </div>
        <div class="search-list-con csdn-tracking-statistics" data-mod="popu_281" data-dsm="post">
            <dl class="search-list">
                <dt>
                    <a href="https://edu.csdn.net/course/detail/553" target="_blank" strategy="SearchFromCsdn">CSDN Markdown简明教程</a>
                    <a href="https://edu.csdn.net/course/detail/553" target="_blank" strategy="SearchFromCsdn">&nbsp;&nbsp;-&nbsp;CSDN学院</a>
                </dt>
                <dd class="course_pic">
                    <a href="https://edu.csdn.net/course/detail/553" target="_blank" strategy="SearchFromCsdn"><img src="./文章 - CSDN搜索_files/201881614845498_78776.png" /></a>
                </dd>
                <dd class="author-time class-so-a">
                    讲师：
                    <a href="https://edu.csdn.net/lecturer/lecturer_detail?lecturer_id=365" target="_blank">王海庆</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <span aria-hidden="true" class="glyphicon glyphicon-user"></span>&nbsp;
                    <a href="https://edu.csdn.net/course/detail/553" target="_blank">24299</a>人在学
                </dd>
                <dd class="search-detail course_search_detail">
                    Markdown把作者从繁杂的排版工作中解放出来，实现易读易写的
                    <em>文章</em>写作，已经逐渐成为事实上的行业标准。CSDN博客支持Markdown可以让广大博友更加专注于博客内容，大赞。但是，不少博友可能对Markdown比较生疏，系列文章《Markdown简明教程》扼要介绍CSDN Markdown，本视频为系列教程的配套教程，希望可以对大家有所帮助。
                </dd>
                <dd class="search-link">
                    <a href="https://edu.csdn.net/course/detail/553" target="_blank">https://edu.csdn.net/course/detail/553</a>
                </dd>
            </dl>
            <dl class="search-list yd_a_d_so" id="_yd_ad_1">
                <iframe scrolling="no" style="width: 100%; height: 55px; border: 0px;" src="./文章 - CSDN搜索_files/saved_resource.html"></iframe>
            </dl>

            <dl class="search-list J_search">
                <dt>
                    <a href="https://blog.csdn.net/qq_41652274/article/details/79248848" target="_blank" strategy="_10">CSDN上转载<em>文章</em> - CSDN博客</a>
                </dt>
                <dd class="search-detail">
                    版权声明:本文为博主原创
                    <em>文章</em>,未经博主允许不得转载。 https://blog.csdn.net/qq_41652274/article/details/79248848 在参考“如何快速转载CSDN中的博客”后,...
                </dd>
                <dd class="search-link">
                    <a href="https://blog.csdn.net/qq_41652274/article/details/79248848" target="_blank" strategy="_10">https://blog.csdn.net/qq_41652274/article/details/79248848</a>
                </dd>
            </dl>
            <dl class="search-list J_search">
                <dt>
                    <a href="https://blog.csdn.net/dm_vincent/article/details/51885375" target="_blank" strategy="_11">[AngularJS面面观] 13. Angular工具库 --- 异常对象创..._CSDN博客</a>
                </dt>
                <dd class="search-detail">
                    本系列
                    <em>文章</em>会讨论Angular框架除了提供scope等核心功能外,还提供了哪些功能。 作为Angular工具库这一系列
                    <em>文章</em>的开篇,首先来看看但凡程序都绕不开的一个话题 - 异常。...
                </dd>
                <dd class="search-link">
                    <a href="https://blog.csdn.net/dm_vincent/article/details/51885375" target="_blank" strategy="_11">https://blog.csdn.net/dm_vincent/article/details/51885375</a>
                </dd>
            </dl>
            <dl class="search-list J_search">
                <dt>
                    <a href="https://blog.csdn.net/rrrfff/article/details/76796261" target="_blank" strategy="_12"><em>文章</em> - 【OpenCV3.3】编译源码并搭建VS2017+Windows开..._CSDN博客</a>
                </dt>
                <dd class="search-detail">
                    <em>文章</em>标签: opencv c++ windows 个人分类: C/C++ 图像处理 Windows 想对作者说点什么? 我来说一句 openCV3.3 + VS2017 一个编程小白的VS2017 + openCV3....
                </dd>
                <dd class="search-link">
                    <a href="https://blog.csdn.net/rrrfff/article/details/76796261" target="_blank" strategy="_12">https://blog.csdn.net/rrrfff/article/details/76796261</a>
                </dd>
            </dl>
        </div>
        <div id="nodata" style="width:820px;height: 240px;background: #FFFFFF;box-shadow: 0 2px 4px 0 rgba(0,0,0,0.05); display: none;">
            <img style="width: 167px;height: 86px;margin: 77px 294px 77px 359px;" src="./文章 - CSDN搜索_files/symbols.png" alt="" class="img1" />
        </div>
           #include("./_inc/_pagination.html")
       </div>
    </div>
    <!--}con-l end-->
    <div class="layui-col-md3" style=" margin-top: 116px;">

        #include("./_inc/_signin_panel.html")
        #include("./_inc/_answer.html")
        #if(USER!=null)
        #include("./_inc/_recommend.html")
        #end
        #include("./_inc/_hot_posts.html")
        #include("./_inc/_links.html")
        #include("./_inc/_contact.html")

    </div>
   </div>
</div>

</div>
<script id="noticeScript" type="text/javascript" btnid="header_notice_num" wrapid="note1" count="5" subcount="5" src="./文章 - CSDN搜索_files/notify.js.下载"></script>
</div>
<input type="hidden" id="aa_g_data_ids" />
#end
#define script()
#end
<script>
    var blogUn = "";
    var isVip = "0";
    //从博主过来的搜索
    if(blogUn!=""){
        if($('.search-list-con').find('.J_search').length<=0){
            $("#nodata").show()
        }
    }
</script>
<script type="text/javascript">
    $(window).on("load", function () {
        BaiduSuggestion.bind("keyword", {
            "XOffset": "5",
            "YOffset": "-3",
            "fontSize": "14px",		//文字大小
            "line-height": "30px",
            "padding": "0 5px",
            "borderColor": "#e2e2e2", 	//提示框的边框颜色
            "bgcolorHI": "#cccccc",		//提示框高亮选择的颜色
            "sugSubmit": false		//在选择提示词条是是否提交表单
        });
    })
</script>

